﻿using System;
using System.ServiceModel;
using System.Collections.Generic;
using appDataContracts;

namespace appInterfaces
{
    //[ServiceContract(Namespace = "http://www.elgee.com/1/0/0/0", SessionMode = SessionMode.Required)]
    [ServiceContract]
    public interface IClient
    {
        [OperationContract]
        List<SerializedOrder> getOrders(bool done, int idUser);
        [OperationContract]
        SerializedClient getAccoutInfo(int idUser);
        [OperationContract]
        bool registerAccount(SerializedClient client);
        [OperationContract]
        SerializedClient checkAccount(String email, String password);
        [OperationContract]
        List<SerializedCatalog> getSupplierCatalogs(int supplierId);
        [OperationContract]
        List<SerializedProduct> getProducts(int idCatalog);
        //jointure avec fournisseur
        [OperationContract]
        SerializedOrder getOrderDetails(int idOrder);
        [OperationContract]
        List<SerializedSupplier> getSuppliers();
        [OperationContract]
        bool updateAccountInfo(SerializedClient client);
        [OperationContract]
        SerializedProduct getProductInfo(int productId);
        [OperationContract]
        SerializedSupplier getSupplier(int supplierId);
        [OperationContract]
        List<SerializedCatalog> getCatalogs();
        [OperationContract]
        SerializedCatalog getCatalog(int catalogId);
        [OperationContract]
        int addOrder(SerializedClient client, SerializedOrder order);
        [OperationContract]
        SerializedSupplier getSupplierByCatalog(int catalogId);
    }
}
